<div ms-controller="homeworkList">

    <ol class="breadcrumb">
        <li class="active">作业列表</li>
    </ol>

    <div class="body">
        <h1>作业列表</h1>

        <hr>
        <button class="btn btn-primary"
                ms-click="newHomework($event)">
            <i class="glyphicon glyphicon-plus"></i>
            <span>新建作业</span>
        </button>
        <br>
        <br>

        <table class="table table-striped">
            <tr>
                <td class="col-xs-3">标题</td>
                <td class="col-xs-3">班级</td>
                <td class="col-xs-3">截止时间</td>
                <td class="col-xs-3">-</td>
            </tr>
            <tr ms-repeat="list">
                <!--<td>-->
                <!--<span ms-attr-title="{{el._id}}" class="glyphicon glyphicon-info-sign"></span>-->
                <!--</td>-->
                <td><a ms-attr-href="#!/homework/view/{{el._id}}">{{el.title}}</a></td>
                <td>{{el.class.replace('#',',')}}</td>
                <td>{{el.overtime|date("yyyy-MM-dd HH:mm:ss")}}</td>
                <td>
                    <button class="btn btn-danger"
                            ms-click="removeHomework($event,el._id)">
                        <i class="glyphicon glyphicon-trash"></i>
                        <span>删除</span>
                    </button>
                    <button class="btn btn-default"
                            ms-click="editHomework($event,el._id)">
                        <i class="glyphicon glyphicon-edit"></i>
                        <span>编辑</span>
                    </button>
                </td>
            </tr>
        </table>
    </div>

    <style>
        .table {
            font-size: 14px;
        }

        button.btn {
            font-size: 12px;
        }
    </style>


</div>